<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<jsp:include page="../head.jsp">
<jsp:param value="援助管理" name="title"/>
</jsp:include>
</head>
<body>
	<div class="container">
		<div class="row">
			<div id="content" class="col-lg-12">
				<div class = "dao">		
					<a class="section" href = "manager">客户跟进</a>
					<i class="right chevron icon divider"></i>
					<span class="active section">援助管理</span>							
				</div>
				<div class="row">
					<div class="col-md-12">
						<!-- BOX -->
						<div class="box border blue">
							<div class="box-title">
								<h4>援助客户列表</h4>
							</div>
					<div class="box-body center">
							<table id="datatable2" cellpadding="0" cellspacing="0" border="0" class="datatable table table-striped table-bordered table-hover">
								<thead >
									<tr style = "text-align: center">
									<th>姓名</th>
									<th>性别</th>
									<th>住址</th>
									<th>电话</th>
									<th>学历</th>
									<th>爱好</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
								<c:forEach items="${applyList }" var="applyList">
									<tr>
										<td style="display:none">
											<input class="item-check input" type="hidden" value="${applyList.cust_id }"><label></label>
										</td>
										<td ><a href="common/info?id=${applyList.cust_id}">${applyList.cust_name}</a>
										</td>
										<td>${applyList.cust_gender }</td>
										<td>${applyList.cust_address }</td>
										<td>${applyList.cust_telphone }</td>
										<td>${applyList.degree_name }</td>
										<td>${applyList.cust_hobby }</td>
										<td>
											<a href="follow/manager?id=${applyList.cust_id}&name=${ applyList.cust_name }"><i></i> 新增记录</a>&nbsp;&nbsp;
											<a href="search/all?id=${applyList.cust_id}&name=${ applyList.cust_name }"> <i></i>查看所有记录</a>
										</td>
									</tr>
								</c:forEach>
								<c:if test="${empty applyList}">
									<tr>
										<td style="text-align: center;" colspan="8">暂无记录</td>
									</tr>
								</c:if>
							</tbody>
						</table>
				<c:if test="${totalPage > 1 }">
					<div class="page">
						<a <c:if test="${page!=1}">href="dept/form?page=1${queryString}"</c:if>
							class="${page == 1?'disable':''}">首页</a> <a
							<c:if test="${page!=1}">href="dept/form?page=${page-1}${queryString}"</c:if>
							class="${page == 1?'disable':''}">上一页</a> <a
							<c:if test="${page!=totalPage}">href="dept/form?page=${page+1 }${queryString}"</c:if>
							class="${page == totalPage?'disable':''}">下一页</a> <a
							<c:if test="${page!=totalPage}">href="dept/form?page=${totalPage }${queryString}"</c:if>
							class="${page == totalPage?'disable':''}">最后一页</a> <span>
							${page}/${ totalPage} </span>
					</div>
				</c:if>
				</div>
			</div>
		</div>
	</div>
	</div>
</body>
</html>